import req1 from '@/lib/req1'
//获取工资管理列表
export function wageListAPI(){
    return req1.get('/wage/wageList')
}
//新增工资
export function addWageAPI({name,month,basePay,fullPay,late,leavePay,kpiPay,IncomeTax,insurance}){
    console.log(name,month,basePay,fullPay,late,leavePay,kpiPay,IncomeTax,insurance);
  return req1.post('/wage/wageAdd',{
    name,month,basePay,fullPay,late,leavePay,kpiPay,IncomeTax,insurance
  })
}
//修改工资
export function getUpdateAPI({id ,name,month,basePay,fullPay,late,leavePay,kpiPay,IncomeTax,insurance }){
    return req1.put('/wage/wageUpdate',{
        id ,name,month,basePay,fullPay,late,leavePay,kpiPay,IncomeTax,insurance
    })
}
//删除
export function delectWageAPI(id){
id = id.join()
   return req1.delete('/wage/wageDelete',{id})
}
//查询
export function seachAPI({deptName ,month}){
    return req1.get('/wage/wageLike',{deptName ,month})
}
//部门
export function depListAPI(){
    return req1.get('/archives/deptList')
}
